package demo2;/*
 *@ 代阳敲的专属代码
 **/

public class Test {
}
class FinallyExample {
    public static void main(String[] args) {
        try {
            System.out.println("执行 try 代码.");
            Runtime.getRuntime().halt(0);
        } finally {
            System.out.println("执行 finally 代码.");
        }
        System.out.println("finally 代码块中的语句会执行吗?");
    }
}
interface   TestInterface{
    void m1();
    default void m2(){
        System.out.println("m2");
    }
}
abstract class a implements TestInterface{

}
class TestClass implements TestInterface{
    public void m1(){
        System.out.println("m1");
    }

    @Override
    public void m2() {

    }
}
interface TestInterface2{
    void m1();
    void m2();
}
interface TestInterface3 extends TestInterface2{
    void m3();
}